package com.youshang520i.ratelimiter.config.annotation;

import com.youshang520i.ratelimiter.config.RateLimiterConfiguration;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author youshang
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
@Configuration
@Import(RateLimiterConfiguration.class)
public @interface EnableRateLimiter {
    /**
     * 当前注解的扫描路径
     *
     * @return
     */
    String scanPackage();
}
